#!/usr/bin/env python
#-*- coding:utf-8 -*-
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
from flask_pagedown.fields import PageDownField


class PostForm(FlaskForm):
    title = StringField(label=u'标题', validators=[DataRequired()])
    body = PageDownField(label=u'正文', validators=[DataRequired()])
    submit = SubmitField(u'发表')


class CommentForm(FlaskForm):
    body = PageDownField(label=u'评论', validators=[DataRequired()])
    submit = SubmitField(u'发表')


class DailyForm(FlaskForm):
    item = StringField(label=u'事项', validators=[DataRequired()])
    detail = StringField(label=u'事项详情', validators=[DataRequired()])
    status = StringField(label=u'状态', validators=[DataRequired()])
    finsh_time = StringField(label=u'计划完成时间', validators=[DataRequired()])
    submit = SubmitField(u'提交')